<template>
  <!-- 详情 -->
  <el-dialog title="过卡记录详情" :visible.sync="dialogVisible" width="50%" append-to-body :close-on-click-modal="false" :before-close="closedialog">
       <el-descriptions :column="2"  border>
		 <el-descriptions-item>
		        <template slot="label">
		         采集列号
		        </template>
		       {{form.seqNo}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         海关编码
		        </template>
		       {{form.customsCode}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         场站编码
		        </template>
		       {{form.fieldCode}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         场站名称
		        </template>
		       {{form.fieldName}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         通道编码
		        </template>
		       {{form.channelNo}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         通道名称
		        </template>
		       {{form.channelName}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         进出口标志
		        </template>
		       {{form.iEFlag}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         进出场
		        </template>
		       {{form.ieType}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         车辆海关编码
		        </template>
		       {{form.veCustomsNo}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         车牌号
		        </template>
		       {{form.vehicleNo}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         车辆自重
		        </template>
		       {{form.emptyWt}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         挂车重量
		        </template>
		       {{form.trayWt}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         IC卡号
		        </template>
		       {{form.cardNo}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         电子车牌
		        </template>
		       {{form.rfid}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         集装箱号
		        </template>
		       {{form.contaNo}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         集装箱重量
		        </template>
		       {{form.contaWt}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         放行标识
		        </template>
		       {{form.checkResult}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         led显示
		        </template>
		       {{form.ledHint}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         批次号
		        </template>
		       {{form.manifestId}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         报关单号
		        </template>
		       {{form.entryId}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         单证编号
		        </template>
		       {{form.billCode}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         业务类型
		        </template>
		       {{form.businessType}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         过卡类型
		        </template>
		       {{form.veGrossType}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         过卡重量
		        </template>
		       {{form.crossWeight}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         货物重量
		        </template>
		       {{form.goodsWt}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         货物名称
		        </template>
		       {{form.goodsName}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         放行时间
		        </template>
		       {{form.checkTime}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         验放主体
		        </template>
		       {{form.checkBody}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         企业编码
		        </template>
		       {{form.declCopCode}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         企业名称
		        </template>
		       {{form.declCopName}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         创建时间
		        </template>
		       {{form.createTime}}
		  </el-descriptions-item>
         </el-descriptions>
        <div slot="footer" class="dialog-footer" style="text-align: center;">
          <el-button @click="closedialog">关闭</el-button>
        </div>
    </el-dialog>
</template>

<script>
import { getGkHdGather } from "@/api/billsdecl/GkHdGather";
export default {
  props: {
    dict: {}
  },
  data() {
    return {
      //显示详情
      dialogVisible:false,
      form: {
                                      id: null,
                                            seqNo: null,
                                            customsCode: null,
                                            fieldCode: null,
                                            fieldName: null,
                                            channelNo: null,
                                            channelName: null,
                                            iEFlag: null,
                                            ieType: null,
                                            veCustomsNo: null,
                                            vehicleNo: null,
                                            emptyWt: null,
                                            trayWt: null,
                                            cardNo: null,
                                            rfid: null,
                                            contaNo: null,
                                            contaWt: null,
                                            checkResult: null,
                                            ledHint: null,
                                            manifestId: null,
                                            entryId: null,
                                            billCode: null,
                                            businessType: null,
                                            veGrossType: null,
                                            crossWeight: null,
                                            goodsWt: null,
                                            goodsName: null,
                                            checkTime: null,
                                            checkBody: null,
                                            declCopCode: null,
                                            declCopName: null,
                                            createTime: null
                      }
    }
  },
  methods: {
    open(row){
      this.dialogVisible = true;
      this.loadDetail(row);
    },
    closedialog(){
      this.dialogVisible = false
    },
    // 获取详情
    loadDetail(row) {
      getGkHdGather(row.id).then((res) => {
        if (res.code == 200) {
          this.form = res.data;
                  }
      });
    },
  }
};
</script>

<style>

</style>
